package example.jdbc;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.scaffold.catalog.entity.Catalog;

@Service
@Transactional(rollbackFor = Exception.class)
public class CatalogService {

	@Autowired
	private CatalogDAO catalogDAO;
	
	public List<Catalog> findByParentId(Long parentId) {
		return this.catalogDAO.findByParentId(parentId);
	}

}
